Optimal. Leaf size=43 \[ x \left (a+b \log \left (c x^n\right )\right )^2-2 a b n x-2 b^2 n x \log \left (c x^n\right )+2 b^2 n^2 x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {2296, 2295} \[ x \left (a+b \log \left (c x^n\right )\right )^2-2 a b n x-2 b^2 n x \log \left (c x^n\right )+2 b^2 n^2 x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2295
Rule 2296
Rubi steps
\begin {align*} \int \left (a+b \log \left (c x^n\right )\right )^2 \, dx &=x \left (a+b \log \left (c x^n\right )\right )^2-(2 b n) \int \left (a+b \log \left (c x^n\right )\right ) \, dx\\ &=-2 a b n x+x \left (a+b \log \left (c x^n\right )\right )^2-\left (2 b^2 n\right ) \int \log \left (c x^n\right ) \, dx\\ &=-2 a b n x+2 b^2 n^2 x-2 b^2 n x \log \left (c x^n\right )+x \left (a+b \log \left (c x^n\right )\right )^2\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 33, normalized size = 0.77 \[ x \left (\left (a+b \log \left (c x^n\right )\right )^2-2 b n \left (a+b \log \left (c x^n\right )-b n\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.43, size = 85, normalized size = 1.98 \[ b^{2} n^{2} x \log \relax (x)^{2} + b^{2} x \log \relax (c)^{2} - 2 \, {\left (b^{2} n - a b\right )} x \log \relax (c) + {\left (2 \, b^{2} n^{2} - 2 \, a b n + a^{2}\right )} x + 2 \, {\left (b^{2} n x \log \relax (c) - {\left (b^{2} n^{2} - a b n\right )} x\right )} \log \relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.36, size = 88, normalized size = 2.05 \[ b^{2} n^{2} x \log \relax (x)^{2} - 2 \, b^{2} n^{2} x \log \relax (x) + 2 \, b^{2} n x \log \relax (c) \log \relax (x) + 2 \, b^{2} n^{2} x - 2 \, b^{2} n x \log \relax (c) + b^{2} x \log \relax (c)^{2} + 2 \, a b n x \log \relax (x) - 2 \, a b n x + 2 \, a b x \log \relax (c) + a^{2} x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 63, normalized size = 1.47 \[ 2 b^{2} n^{2} x -2 b^{2} n x \ln \left (c \,{\mathrm e}^{n \ln \relax (x )}\right )+b^{2} x \ln \left (c \,{\mathrm e}^{n \ln \relax (x )}\right )^{2}-2 a b n x +2 a b x \ln \left (c \,x^{n}\right )+a^{2} x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.61, size = 57, normalized size = 1.33 \[ b^{2} x \log \left (c x^{n}\right )^{2} - 2 \, a b n x + 2 \, a b x \log \left (c x^{n}\right ) + 2 \, {\left (n^{2} x - n x \log \left (c x^{n}\right )\right )} b^{2} + a^{2} x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.58, size = 49, normalized size = 1.14 \[ x\,\left (a^2-2\,a\,b\,n+2\,b^2\,n^2\right )+b^2\,x\,{\ln \left (c\,x^n\right )}^2+2\,b\,x\,\ln \left (c\,x^n\right )\,\left (a-b\,n\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.52, size = 109, normalized size = 2.53 \[ a^{2} x + 2 a b n x \log {\relax (x )} - 2 a b n x + 2 a b x \log {\relax (c )} + b^{2} n^{2} x \log {\relax (x )}^{2} - 2 b^{2} n^{2} x \log {\relax (x )} + 2 b^{2} n^{2} x + 2 b^{2} n x \log {\relax (c )} \log {\relax (x )} - 2 b^{2} n x \log {\relax (c )} + b^{2} x \log {\relax (c )}^{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________